// 审减退库表头
export const columns = [
    { label: '站址编码', prop: 'siteId', },
    { label: '采购订单编号', prop: 'orderCode' },
    { label: '供应商编码', prop: 'providerCode' },
    { label: '供应商名称', prop: 'providerName' },
    { label: '合同编号', prop: 'contractCode' },
    { label: '物资编码', prop: 'pmsMaterialCode' },
    { label: '物资名称', prop: 'pmsCategoryName', },
    { label: '建设子专业名称', prop: 'subType', },
    { label: '规格名称', prop: 'formPattern' },
    { label: '计量单位', prop: 'unit' },
    { label: '单位计量', prop: 'dwjl' },
    { label: '单价(元)', prop: 'price' },
    { label: '物资审减数量', prop: 'mdseNum' },
    { label: '物资审减金额(元)', prop: 'amount', },
    {
        label: '其中：无实物退库', width: '100', prop: '',
        children: [
            {
                label: '退库物资审减金额(元)',
                prop: 'noMaterialReduceAmount',
                width: '100',
            },
            {
                label: '退库物资数量',
                prop: 'noMaterialDisableNoStock',
                width: '100',
                edit: true
            }
        ],
        edit: true
    },
    {
        label: '有实物退库', width: '100', prop: '',
        children: [
            {
                label: '退库物资审减金额(元)',
                prop: 'materialReduceAmount',
                width: '100',
                edit: false
            },
            {
                label: '可用入库退库数量',
                prop: 'materialUsableStock',
                width: '100',
                edit: true
            },
            {
                label: '可用不入库退库数量',
                prop: 'materialUsableNoStock',
                width: '100',
                edit: true
            },
            {
                label: '不可用入库退库数量',
                prop: 'materialDisableStock',
                width: '100',
                edit: true
            },
            {
                label: '不可用不入库退库数量',
                prop: 'materialDisableNoStock',
                width: '100',
                edit: true
            }, {
                label: '保管人',
                prop: 'keeper',
                width: '100',
                edit: true
            },
            {
                label: '保管人联系方式',
                prop: 'keeperContact',
                width: '100',
                edit: true
            },
            {
                label: '保管人地址',
                prop: 'keeperAddress',
                width: '100',
                edit: true
            }
        ],
        edit: true
    }
]
// 二级表格编辑
export const subEditor = [
    'noMaterialDisableNoStock',
    'materialUsableStock',
    'materialUsableNoStock',
    'materialDisableStock',
    'materialDisableNoStock',
    'keeper',
    'keeperContact',
    'keeperAddress'
]

// 审减退库综合查询表头
export const SearchListColumns = [
    { label: '流水号', prop: 'id', },
    { label: '审减退库发起时间', prop: 'createTime' },
    { label: '审减退库完成时间', prop: 'completeTime' },
    { label: '当前环节', prop: 'currentPoint' },
    { label: '当前办理人', prop: 'currentEmpId' },
    { label: '业务状态', prop: 'status', },
    { label: '是否正常损耗', prop: 'isNormalLoss' },
]

export const configColumns = [
    { label: '项目编码', prop: 'prjCode' },
    { label: '项目名称', prop: 'projectName' },
    { label: '项目年份', prop: 'prjYear' },
    { label: '建设单位', prop: 'orgName',},
    { label: '项目类型', prop: 'prjType', dicType: 'PROJ_TYPE', dicProp: { label: 'dictName', value: 'dictId' } },
    { label: '当前环节', prop: 'currentPoint' },
    { label: '当前办理人', prop: 'currentEmpId' },
    // { label: '建设方式', prop: 'buildModes', dicType: 'BUILD_MODES', dicProp:  { label: 'dictName', value: 'dictId' } },
    { label: '业务状态', prop: 'reduceStatus', dicType: 'REDUCE_CANCELLSTOCKS_STATUS', dicProp: { label: 'dictName', value: 'dictId' } },
]
// 特别修正搜索表单
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'prjCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目编码'
        },
        {
            type: 'input',
            prop: 'projectName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目名称'
        },
        {
            type: 'select',
            prop: 'isNewbusiness',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: false,
            label: '业务类型',
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            width: '',
            colSpan: 6,
            label: '项目类型',
            dicType: 'PROJ_TYPE',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjYear',
            value: new Date().getFullYear().toString(),
            width: '',
            colSpan: 6,
            label: '项目年份',
            dicType: 'PRJ_YEAR',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'slot',
            prop: 'orgId',
            value: '',
            width: '',
            colSpan: 6,
            label: '建设单位',
            dicType: 'BUILD_UNIT',
            clearable: true,
            dicProp: {
                label: 'orgName',
                value: 'orgId'
            }
        },
        {
            type: 'select',
            prop: 'buildModes',
            value: '',
            width: '',
            colSpan: 6,
            label: '建设方式',
            dicType: 'BUILD_MODES',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'status',
            value: '',
            width: '',
            colSpan: 6,
            label: '业务状态',
            dicType: 'REDUCE_CANCELLSTOCKS_STATUS',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
    ]
}